Skip to main content

GET Channels Paged List

Overview


The table below provides key details about the GET method for retrieving a paged list of channels.

GET Channels Paged List
MethodGET
URL or Endpoint/api/v1/projectId/channels
HeadersAuthorization
ParametersprojectId, healthStatusId(query), liveStatusId(query), search(query), order(query), insertedDate(query), page(query), take(query)
BodyNot Applicable

The description of the URL parameter is as follows:

projectId URL Parameter
URL Parameter NameprojectId
MandatoryYes
Typestring
DescriptionUnique Id of the project.

The description of the parameters is as follows:

Parameter NameMandatoryTypeDescription
healthStatusIdNointeger($int32)Health status unique id for the channel
liveStatusIdNointeger($int32)Live status unique id for the channel
searchNostringSearch for a specific channel
orderNostringSpecified the order position of the channel
insertedDateNostring($date-time)Date time
pageNointeger($int32)Current page you want to receive
takeNointeger($int32)Number of channels you want to receive
projectIdYesstringThe id of the project.

Before executing this API, please visit the other API for more information on the properties to achieve the desired response.

Request Body

The request does not contain a request body.

Response

{
"success": true,
"errors": [
"string"
],
"messages": [
"string"
],
"result": {
"currentPage": 0,
"totalPages": 0,
"pageSize": 0,
"totalCount": 0,
"items": [
{
"publicId": "string",
"title": "string",
"logo": "string",
"healthStatus": "string",
"liveStatus": "string",
"inputType": "string",
"orderNumber": 0
}
]
},
"resultInfo": "string",
"statusCode": 0
}

Information about the fields that appear when you receive the response are displayed in the table below.

Field NameTypeDescription
successboolIf the response is successful it will return true. Otherwise will return false.
errorsarray[]Indicates if there was an error.
messagesarray[]Returns the response message from back-end.
resultarray[Object]Returns the response object.
currentPageinteger($int32)Returns the current page number in the paginated list of channels.
totalPagesinteger($int32)Returns the total number of pages available for the channel list
pageSizeinteger($int32)Specifies the maximum number of channels that can be displayed on a single page
totalCountinteger($int32)Returns the total number of channels that are in that page
itemsarray[Object]Returns the list of channel objects with detailed information for each channel.
publicIdstringReturns the public identifier for the channel
titlestringReturns the title of the channel
logostringReturns the URL for the channel's logo
healthStatusstringIndicate the health status of the channel
liveStatusstringIndicate the live status of the channel
inputTypestringReturns type of input used to create the channel
orderNumberinteger($int32)Specified the order position of the channel
resultInfostringReturns extra information about the result.
statusCodeinteger($int32)Returns the HTTP Status Code.

If the action is successful, the service sends back an HTTP 200 or 201 response.

Errors

For information about the errors that are common to all actions, see Common Errors:

  • HTTP Status Code 400: Bad Request

  • HTTP Status Code 401: Unauthorized

  • HTTP Status Code 403: Forbidden

  • HTTP Status Code 404: Result Not Found

  • HTTP Status Code 500: Internal Server Error

  • HTTP Status Code 503: Backend Fetch Failed